package com.taxx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.taxx.entity.TaxPlatformReport;
import com.taxx.mapper.TaxPlatformReportMapper;
import com.taxx.service.TaxPlatformReportService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 税务平台信息报送服务实现类
 *
 * @author taxx
 * @since 2024-01-01
 */
@Service
public class TaxPlatformReportServiceImpl extends ServiceImpl<TaxPlatformReportMapper, TaxPlatformReport> implements TaxPlatformReportService {

    @Override
    public boolean isExist(String creditCode, String batchCode) {
        List<TaxPlatformReport> list = this.baseMapper.isExist(creditCode, batchCode);
        return list != null && !list.isEmpty();
    }
}
